/*
 * ClassA.cpp
 *
 *  Created on: 2012-4-28
 *      Author: im
 */

#include "ClassA.h"
#include <iostream>

using std::cout;
using std::endl;

ClassA::ClassA()
{
	// produce some memory access error and memory leak error
	int *data = new int[10];
	for (int i=0; i<=10; ++i)
	{
		data[i] = i;
	}

	cout << "My name Class A!" << endl;
}

ClassA::~ClassA()
{
}
